package com.i2works.smartluolong.web.service.fooddrug.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.i2works.smartluolong.utils.basecommon.BaseCommonServiceImpl;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.utils.exception.ServiceException;
import com.i2works.smartluolong.web.dal.fooddrug.dao.IFooddrugApplyImagesDAO;
import com.i2works.smartluolong.web.entity.fooddrug.FooddrugApplyImagesDO;
import com.i2works.smartluolong.web.entity.fooddrug.FooddrugApplyImagesQuery;
import com.i2works.smartluolong.web.service.fooddrug.IFooddrugApplyImagesService;

/**
 * @author Liu Yapeng
 * @date 2018-14-74 14:59:28
 */
@Service("fooddrugApplyImagesService")
public class FooddrugApplyImagesServiceImpl extends BaseCommonServiceImpl<FooddrugApplyImagesQuery,FooddrugApplyImagesDO>implements IFooddrugApplyImagesService {
	private final IFooddrugApplyImagesDAO fooddrugApplyImagesDAO;
	
	  @Autowired
	    public FooddrugApplyImagesServiceImpl(IFooddrugApplyImagesDAO fooddrugApplyImagesDAO) {
	        this.fooddrugApplyImagesDAO = fooddrugApplyImagesDAO;
	    }
	  
	@Override
	public void deleteApply(Integer applyId) throws ServiceException {
			try {
				fooddrugApplyImagesDAO.deleteApply(applyId);
			} catch (DAOException e) {
				e.printStackTrace();
			}
	}

}
